<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
import { mapGetters } from "vuex";
import router from "./router/index";
export default {
  name: "App",
  data() {
    return {
      router,
    };
  },
  watch: {
    addRoutes: {
      handler: function (newVal, oldVal) {
        console.log("addRoute-", newVal);
      },
      immediate: true,
    },
  },
  computed: {
    ...mapGetters(["addRoutes"]),
  },
};
</script>
